package com.huawei;

import java.util.Scanner;

/**
 * Created by Z-hong on 2024/7/2.
 */

public class HJ12 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        StringBuffer sb=new StringBuffer(str);
        System.out.println(sb.reverse().toString());
    }
}
